package com.itheima.web;

import com.itheima.domain.User;
import com.itheima.service.UserService;
import com.opensymphony.xwork2.ActionSupport;

/**  
 * ClassName:UserAction <br/>  
 * Function:  <br/>  
 * Date:     Nov 24, 2017 3:13:53 PM <br/>       
 */
public class UserAction extends ActionSupport {
     private Integer id;
     private UserService userService;

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
     
    public String findById() {
        User user = userService.find(id);
        System.out.println(user);
        
        return NONE;
    }
}
  
